package com.guodefu.demo.dto;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import jakarta.validation.constraints.NotBlank;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * '@JsonIgnoreProperties(ignoreUnknown = true)'忽略多余的字段数据
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
@JsonIgnoreProperties(ignoreUnknown = true)
public class DictionaryDTO {
    @NotBlank(message = "type不能为空")
    private String type;
    @NotBlank(message = "code不能为空")
    private String code;
    @NotBlank(message = "name不能为空")
    private String name;
    @NotBlank(message = "ename不能为空")
    private String ename;
    private String description;
}

